//! By convention, main.zig is where your main function lives in the case that
//! you are building an executable. If you are making a library, the convention
//! is to delete this file and start with util.zig instead.

const std = @import("std");

/// This imports the separate module containing `util.zig`. Take a look in `build.zig` for details.
const wm = @import("wm_lib");

pub fn main() !void {
    var display_name: ?[*:0]const u8 = null;
    if (std.os.argv.len > 1) {
        display_name = std.os.argv[1];
    }

    var x = try wm.WmRuntime.init(display_name);

    try x.run();
}
